<div class="article">
<div class="indent">
<div class="subjectall clearfix">
<div id="mainpic"><%= image_tag "#{@item.main_pic}_310x310.jpg" ,:title=>"点击看大图" ,:alt=>"#{@item.name}"%></div>
<div class="subject clearfix">
<h1><%=@item.name%></h1>
<div class="info clearfix">
<div class="info_class">
<ul>
<li><span class="pl">品牌:</span><%=@item.brand_name%></li>
<li><span class="pl">款式:</span><%=@item.cloth_type%></li>
<li><span class="pl">季节:</span><%=@item.season%></li>
<li><span class="pl">图案:</span><%=@item.pic_design%></li>
</ul>
</div>
<div class="info_star"> 
<ul class="pl">
<li>总评分:<span class="bigstar40 rr"></span></li>
<li>外观:<span class="bigstar40 rr"></span></li>
<li>质地:<span class="bigstar40 rr"></span></li>
<li>舒适度:<span class="bigstar40 rr"></span></li>
</ul> 
</div> 
</div> 
<div class="clear"></div> 
<div class="subject_comment clearfix"> 
<span class="quo_left"></span> 
<span class="font_color1">非常好</span> 
<span class="font_color2">非常好</span> 
<span class="font_color3">非常好</span> 
<span class="font_color4">非常好</span> 
<span class="font_color5">非常好</span> 
<span class="font_color6">非常好</span> 
<span class="font_color7">非常好</span> 
<span class="quo_right"></span> 
</div> 
</div> 
</div> 
<div id="interest_sect_level" class="clearfix"><a href="javascript:void(0)"  class="colbutt ll" id="collect" name="pbtn-<%= params[:id] %>-collect"><span>买过</span></a><a href="javascript:void(0)" class="colbutt ll" id="wish" name="pbtn-<%= params[:id] %>-wish"><span>想买</span></a><div class="ll j a_stars"></div>
<div class="ll j a_stars">评价:
    <span id="rating"><span id="stars">
    <% 1.upto(5) do |index|%>
	<img class="j a_collect_btn" name="pbtn-<%= params[:id] %>-collect-<%= index %>" src="http://img3.douban.com/pics/nst.gif" id="star<%= index %>">
	<% end  %>
	</span>
	<span id="rateword" class="pl"></span>
    <input id="n_rating" type="hidden" value=""></span>
	</div>
    <div style="width:270px; float:right"> 
    <ul class="fleft ul_subject_menu  clearfix"> 
		<li><%= image_tag "subject_collect1.png" %>&nbsp;<a  href="javascript:void(0)" class="link_01">分享</a></li>
		<li><%= image_tag "subject_collect2.png" %>&nbsp;<a  href="javascript:void(0)"  class="link_01" name="pbtn-<%= params[:id] %>-collect" id="collectbtn">收藏</a></li>
		<li><%= image_tag "subject_collect3.png" %>&nbsp;<a  href="javascript:void(0)"  class="link_01" name="pbtn-<%= params[:id] %>-recommend" id="recommendbtn">推荐</a></li> 
    </ul> 
    <span class="fright"><a href="#commt"><input class="button_redbig rr" type="button" name="cbtn-<%= params[:id] %>-collect" value="我来点评" /></a></span> 
    </div> 
    </div> 
</div> 
		<!--搜索开始--> 
        <div class="clear"></div> 
        <div class="info_detail"> 
           <h2>详情</h2>
		   <ul>
		   <li>袖长: 短袖 </li>
		   <li>领子: 圆领 </li>
		   <li>款式细节: 订珠装饰 </li>
		   <li>风格: 韩版 </li>
		   <li>图案: 动物 </li>
		   <li>材质: 纯棉 </li>
		   <li>季节: 夏季 </li> 
           </ul>   
        </div> 
        <!--爆料开始--> 
       <div> 
           <ul class="tab_tag" id="tabs"> 
           	   <li class="select" ref="baoliao"><span>爆料</span></li>
			   <li ref="biaoqian"><span>标签</span></li>
			   <li ref="chaoxun"><span>潮讯</span></li> 
           </ul> 
           <div class="clear"></div> 
           <div class="conner_greenbig_top"></div> 
			<div class="info_detail_tab" id="baoliao"><%=@item.description%></div>
		   <div class="info_detail_tab" id="biaoqian" style="display:none"><span class="font_color4"><%=@item.style_name%> : </span><%=@item.item_style.description%></div>
		   <div class="info_detail_tab" id="chaoxun" style="display:none"><span class="font_color4"><%= @item.item_fashion_name %> : </span><%= @item.item_fashion_description %></div>
           <div class="conner_greenbig_bottom"></div> 
       </div> 
       
       <!--标签数量--> 
       <div class="clearfix"> 
       	<h2>标签(共<%= @tags.count %>个)</h2>
		<div>
			<% @tags.each do |tag| -%>
			<%= link_to tag.name, tag_path(:name => tag.name) %>(<%=tag.total_num%>)&nbsp; 
			<% end -%>
		</div>
       </div>
        
       <!--图片开始--> 
       <div class="detail_pic"> 
		<h2 class="clearfix">
			<%=@item.name%>&nbsp;&nbsp;
			<span class="pl">
		    (<a href="#">全部<%=@item.pictures.size%>张</a>)
			</span>
			<div class="more_blue">
		        &gt;&nbsp;<a class="j a_show_login" href="#">更多图片</a>
			</div>
		</h2> 
    <ul class="detail_pic_img clearfix"> 
    	<% @pictures.each do |picture|%>
		<li><a href="#"><%= image_tag picture.pic_1 %></a></li>
		<% end%>
    </ul> 
       </div> 
       <div class="clear"></div> 
       <!--简短点评--> 
       <div class="brief"> 
       <h2>简短评论</h2> 
       <ul class="brief_tb">
	<%@short_reviews.each do |re| %>
	<li>
		<div class="short"><a href="#" title="米米家"><%= re.content %></a></div>
	    <span class="pl">来自<a href="#"><%= re.user_name %></a></span>
	    <span class="pl">8 回应</span>
	    <span class="pl"><%= re.created_at.strftime("%Y-%m-%d") %></span>
	</li>
	<%end  %>
	</ul> 
       </div> 
		<div class="clear"></div> 
        <!--评论开始--> 
        <div class="comment"> 
        <div class="conner_greengray_top"> 
         <h2 id="comment_tab" class="green_tab clearfix"> 
                <a id="t_0" class="on" onclick="switch_tab('t_0')" href="javascript:void(0)"> 
                    <span> 
                        热门评论
                    </span> 
                </a> 
                <a id="t_1" onclick="switch_tab('t_1')" href="javascript:void(0)"> 
                    <span> 
                        最新评论
                    </span> 
                </a> 
                <span class="rr pl">共<a href="#">566</a>条点评  <a href="#">XXX</a>第一评 </span> 
        </h2> 
         
        </div> 
        <div class="conner_greengray_line"> 
        <div id="wt_0">
	<%@hot_reviews.each do |htr| %> 
		<div class="ctsh">
			<ul class="tlst clearfix" style="clear: both;">
			<li class="nlst"><h3><div id="tb-3470215" class="rr"><a id="af-3470215" rel="sw-False" href="#" class="j a_unfolder" style="background: none repeat scroll 0% 0% transparent;">
			<%= image_tag "arrow2.gif",:alt=>"&gt;", :title=>"展开全文"%></a>
			<a id="au-3470215" href="javascript:void(0);" class="j a_folder" style="background: none repeat scroll 0% 0% transparent; display: none;">
			<%= image_tag "arrow3.gif",:alt=>"&lt;",:title=>"缩进全文"%></a>
			</div></h3></li>
			<li class="ilst" style="clear: both;">
			    <%= image_tag "icon/user_1.jpg"%>
				<br/>
			    <a href="#">姓名</a><br/>等级
			    </li>
			    </li>
			<li class="clst">
			<span class="pl ll obss"><span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4"> 评分: </span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;</span><br><br>
			<div id="review_short"><%= htr.content %><br>
			<br>
			<div class="pl clearfix">
			<span class="fleft"><a href="#">一天前&nbsp; ｜&nbsp; 35人回应</a></span>
			<div class="rr"><span><a href="javascript:void(0)" id="<%= htr.id %>_1" class="report_1"><label><%= htr.up_total %></label><span></span>有用</a> | <a href="javascript:void(0)" id="<%= htr.id %>_-1" class="report_2"><label><%= htr.down_total %></label><span></span>没用</a> |<a href="#" class="report_3">&nbsp;<span></span> 举报</a></span></div>
			</div>
			</div>
			</li>
			</ul>
	    </div>
	<%end %>
        <div class="clear"></div> 
    <p class="pl" align="right" style="padding-right:20px;">&gt; <a href="#">更多评论</a></p></div> 
    
	<div id="wt_1" class="hidden"> 
    	<%@latest_reviews.each do |htr| %> 
			<div class="ctsh">
				<ul class="tlst clearfix" style="clear: both;">
				<li class="nlst"><h3><div id="tb-3470215" class="rr"><a id="af-3470215" rel="sw-False" href="#" class="j a_unfolder" style="background: none repeat scroll 0% 0% transparent;">
				<%= image_tag "arrow2.gif",:alt=>"&gt;", :title=>"展开全文"%></a>
				<a id="au-3470215" href="javascript:void(0);" class="j a_folder" style="background: none repeat scroll 0% 0% transparent; display: none;">
				<%= image_tag "arrow3.gif",:alt=>"&lt;",:title=>"缩进全文"%></a>
				</div></h3></li>
				<li class="ilst" style="clear: both;">
				    <%= image_tag "icon/user_1.jpg"%>
					<br/>
				    <a href="#">姓名</a><br/>等级
				    </li>
				    </li>
				<li class="clst">
				<span class="pl ll obss"><span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4"> 评分: </span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;<span class="font_color4">评分:</span><span class="stars4 stars" title="星星"></span>&nbsp;</span><br><br>
				<div id="review_short"><%= htr.content %><br>
				<br>
				<div class="pl clearfix">
				<span class="fleft"><a href="#">一天前&nbsp; ｜&nbsp; 35人回应</a></span>
				<div class="rr"><span><a href="#" class="report_1"><%= htr.up_total %><span></span>有用</a> | <a href="#" class="report_2"><%= htr.down_total %><span></span>没用</a> |<a href="#" class="report_3">&nbsp;<span></span> 举报</a></span></div>
				</div>
				</div>
				</li>
				</ul>
		    </div>
		<%end %> 
     <div class="clear"></div> 
    <p class="pl" align="right" style="padding-right:20px;">&gt; <a href="#">更多评论</a></p> 
    </div> 
    </div> 
     <div class="conner_greengray_bottom"></div> 
    </div> 
    <!--评论结束-->
	<a name="commt"></a>
    <div class="comment clearfix">
	          <div class="conner_greengray_top">
	            <h2>评论<%= @item.name %></h2>
	          </div>
	          <div class="conner_greengray_line">
				<form action="/register_comment/<%= params[:id] %>" method="POST">
					<%= tag(:input, :type => "hidden", :name =>request_forgery_protection_token.to_s, :value =>   
					form_authenticity_token) %>
				<table class="Message_tb">
	              <tbody>
	                <tr>
	                  <td>评价：</td>
	                  <td><p>
	                      <label>
	                        <input type="radio" name="interest" value="wish" id="RadioGroup1_0">
	                        想买</label>
	                      <label>
	                        <input type="radio" name="interest" value="collect" checked="checked" id="RadioGroup1_1">
	                        买过</label>
	                    </p>
	                    <div class="Message_star" id="ratings">
						  <ul>
						  	<li>综合: </li>
							<li class='st' id="general">
							<% 1.upto(5) do |index|%>
							<img name="pbtn-<%= params[:id] %>-collect-<%= index %>" src="http://img3.douban.com/pics/nst.gif" id="star<%= index %>">
							<% end  %>
							<%=hidden_field_tag 'rate[global_rating]' %>                                                                                                                                                          
							</li>
							<li>外观: </li>
							<li class='st' id="face">
							<% 1.upto(5) do |index|%>
							<img name="pbtn-<%= params[:id] %>-collect-<%= index %>" src="http://img3.douban.com/pics/nst.gif" id="star<%= index %>">
							<% end  %>
							<%=hidden_field_tag 'rate[impression_rating]' %>                                                                                                                                                          
							</li>
							<li>舒适度: </li>
							<li class='st' id="confort">
							<% 1.upto(5) do |index|%>
							<img name="pbtn-<%= params[:id] %>-collect-<%= index %>" src="http://img3.douban.com/pics/nst.gif" id="star<%= index %>">
							<% end  %>
							<%=hidden_field_tag 'rate[comfort_rating]' %>                                                                                                                                                          
							</li>
						  </ul>
	                      <div class="clear"></div>
	                    </div></td>
	                </tr>
	                <tr>
	                  <td valign="top">内容：</td>
	                  <td><textarea name="comment" id="comment_input" class="text_input" style="height:150px;"></textarea></td>
	                </tr>
	                <tr>
	                  <td>标签：</td>
	                  <td><input type="text" name="tags" id="tag_input" class="text_input" style="width:75%">(标签之间用空格分开)</td>
	                </tr>
					<tr>
						<td colspan="2">
							 <dl>
								<dt>常用标签:</dt><dd>
								  <% @tags.each do |tag| -%>
								   <span class="tagbtn0 gract"><%= tag.name %></span> &nbsp; 
									<% end -%>
								 </dd></dl>
						 </td>
					</tr>
	                <tr>
	                  <td>印象：</td>
	                  <td><input type="text" name="impressions" id="impression_input" class="text_input" style="width:75%">(印象之间用空格分开)</td>
	                </tr>
	                <tr>
	                  <td colspan="2">	<dl>
							<dt>常用印象:</dt><dd>
							  <% @tags.each do |tag|  %>
							   <span class="tagbtn0 gract"><%= tag.name %></span> &nbsp; 
								<% end  %>
							 </dd></dl></td>
	                </tr>
	                <tr>
	                  <td></td>
	                  <td><span class="">
	                    <input class="button_redbig" type="submit" id="button2" value="提交">
	                    </span></td>
	                </tr>
	              </tbody>
	            </table>
			</form>
	          </div>
	          <div class="conner_greengray_bottom"></div>
	</div> 
</div> 

<!--右侧栏目开始--> 
<div class="aside"> 
  <div class="conner_gray_top"></div>
  <div class="hot_tags">
    <h2 class="grayh2">热门标签</h2>
    <% @recommend_subjects.hot_tags.each do |recommend_subject| -%>
      <ul class="content clearfix <%= @recommend_subjects.hot_tags.last == recommend_subject ? 'last' : '' %>">
        <li class="font_cyan">[<%= recommend_subject.title %>]</li>
        <% recommend_subject.item_recommends.each do |item_recommend| -%>
          <li><%= link_to item_recommend.name, tag_path(:name => item_recommend.name) %></li>
        <% end -%>
        <li><%= link_to '(更多)', recommend_subject %></li>
      </ul>
    <% end -%>
  </div>
  <div class="conner_gray_bottom"></div>

  <!--广告开始 --> 
  <div class="ads_top_right"><%= image_tag "icon/ads_top.jpg", :width=>"310"  ,:height=>"188" ,:alt=>"广告图片" %></div> 
  <!--广告结束--> 
  
   <h2 class="tab_greenh2"><ul class="tab_tag"><li class="select"><span>谁买过这件衣服</span> </li></ul></h2> 
    <div class="clear" ></div> 
     <div class="conner_green_top"></div> 
   <div class="greenline"> 
   <ul>
		<li class="first">
			<div class="ll"><a href="#"><%= image_tag "icon/user_2.jpg" ,:class=>"pil" ,:alt=>"maisie"%></a></div>
			<div style="padding-left: 60px; padding-bottom:10px">
			<a href="#">我不知道有多少人爱着动漫</a><br/>
			<span class="font_color4">251</span>人关注<br/>
			<div class="pl ll">tags:短袖衬衫 T恤 背心</div><br>
			</div>
		</li>
		<li>
			<div class="ll"><a href="#"><%= image_tag "icon/user_2.jpg", :class=>"pil" ,:alt=>"maisie"%></a></div>
			<div style="padding-left: 60px; padding-bottom:10px">
			<a href="#">我不知道有多少人爱着动漫</a><br/>
			<span class="font_color4">251</span>人关注<br/>
			<div class="pl ll">tags:短袖衬衫 T恤 背心</div><br>
			</div>
		</li>
	</ul>  
    
<div class="clear"></div> 
	<p class="pl">&gt; <a href="#"><%= @item.bought_count %>人买过</a></p>
	<p class="pl">&gt; <a href="#"><%= @item.want_buy_count %>人想买</a></p>
</div> 

<div class="conner_green_bottom"></div> 
		<!--推荐开始--> 
	<h2 class="tab_greenh2"><ul class="tab_tag"><li class="select"><span>同类推荐</span> </li></ul></h2> 
    <div class="clear"></div> 
     <div class="conner_green_top"></div> 
      <div class="photo_show"> 
        <div class="content clearfix"> 
          <ul> 
            <li><a href="#"><%= image_tag "icon/com_1.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>            
			 <li><a href="#"><%= image_tag "icon/com_2.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>   
			 <li><a href="#"><%= image_tag "icon/com_3.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>   
			  <li><a href="#"><%= image_tag "icon/com_1.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>
			  <li><a href="#"><%= image_tag "icon/com_2.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>   
			  <li><a href="#"><%= image_tag "icon/com_3.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li> 
			   <li><a href="#"><%= image_tag "icon/com_1.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>
			  <li><a href="#"><%= image_tag "icon/com_2.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>   
			  <li><a href="#"><%= image_tag "icon/com_3.jpg" ,:class=>"m_sub_img"%></a><br/><a href="#">波西米亚韩版碎花雪纺连衣裙</a></li>     
            </ul>   
        </div> 
            
        </div> 
		<div class="conner_green_bottom"></div> 
 
      </div> 
        <div class="extra"></div> 
    </div>
    
<%= javascript_include_tag 'item'%>
